Getting Started: Running the “PIC32MX USB Starter Kit - CDC Serial Device” Demo

 

Required Hardware

Firmware

Running the Demo

 

 

 

Required Hardware

  To run this project, you will need the following hardware:

 

PIC32MX USB Starter Board (DM320003)

 

 

Firmware

To run this project, you will need to load the corresponding firmware into the PIC32MX device.

 

The source code for this demo is available in the <Install Directory>\usb_sk_cdc_serial_device_demo directory.  In this directory you will find all of the user level source and header files as well as project and workspace files.  Find the project (*.mcp) or workspace (*.mcw) file.  Compile and program the demo code into the hardware platform.  For more help on how to compile and program projects, please refer to the MPLAB® IDE help available through the help menu of MPLAB IDE (Help->Topics…->MPLAB IDE).

 

Please note you will be required to select the correct processor for the demo board.

1) Open the associated project file

            2) In MPLAB Select “Configure->Select Device”

            3) In the device list box in the top left corner of that window, select the PIC32MX460F512L device.

 

Additional information regarding the Microchip USB v1.04 is provided in file “USB Library Help.chm” located in the <Install Directory>\Microchip\Help directory.

 

 

Running the Demo

This demo allows the PIC32MX device to appear like a serial (COM) device to the PC host and echos keys pressed on the PC keyboard back to the terminal application.  Pressing SW1 on the PIC32MX Starter Kit will also send a message to the PC.

 

In order to run this demo first compile and program the target device.  Attach the device to the host with the USB cable.  If the host is a PC and this is the first time you have plugged this device into the computer then you may be asked for an .inf file. 

 

Select the “Install from a list or specific location (Advanced)” option.   Point to the <Install Directory>\USB Tools\USB CDC Serial Demo\inf directory.

 

Once the device is successfully installed, open up a terminal program, such as hyperterminal.  Select the appropriate COM port for the USB virtual COM port.  (This will be the new COM port that was not available before the installation.)

 

Once everything is configured correctly, anything typed into the terminal window will be echoed back by the device.  (Be sure that you haven’t enabled “local echo” or anything typed will be duplicated.)  Also, pressing SW1 on the PIC32MX USB Starter Board will cause the device to display a “Hello” message on the terminal window.

 

Note: Some terminal programs, like hyperterminal, require users to click the disconnect button before removing the device from the computer.  Failing to do so may result in having to close and open the program again in order to reconnect to the device.

 

Trademarks

The Microchip name and logo, the Microchip logo, MPLAB, and PIC are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.

PICDEM and PICTail are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.

Microsoft, Windows, and Windows Vista are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.